package com.xy.hms.mapper;

import com.xy.hms.model.Room;
import com.xy.hms.model.RoomOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;
import org.thymeleaf.util.ListUtils;

import java.util.List;

/**
 * @author xiaye
 * @create 2020-03-01-12:59
 */
@Mapper
@Repository
public interface RoomMapper {

    List<Room> selectAllRooms();

    Room selectRoomById(Integer rid);

    /**
     * @param room
     * @return
     */
    int insertRoom(Room room);

    int updateRoom(Room room);

    int deleteRoom(Integer rid);
}
